package com.translate.web.param;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

import com.translate.web.constant.ValidateCondtionAndMessage;
import com.translate.web.param.contract.IInvocieRechargeAddParam;

import java.io.Serializable;

public class InvocieRechargeAddParam implements IInvocieRechargeAddParam, Serializable {

	private static final long serialVersionUID = -1242493306307174690L;
	// 用户id
	private Integer userId;

	// 充值编号
	@NotNull
	@Min(value = ValidateCondtionAndMessage.MIN_ID, message = ValidateCondtionAndMessage.MIN_ID_MSG)
	private Integer rechargeId;
// 发票抬头类型  0 个人 1 企业
	@NotNull
	@Min(value = ValidateCondtionAndMessage.MIN_STATUS, message = ValidateCondtionAndMessage.MIN_STATUS_MSG)
	@Max(value = ValidateCondtionAndMessage.MAX_STATUS, message = ValidateCondtionAndMessage.MAX_STATUS_MSG)
	private Byte headerType;
// 税号
	@NotNull
//	@Pattern(regexp = ValidateCondtionAndMessage.CHINESE_ENGLISH_NUMBER_UNDERLINE_BY_SERIESDESCRIPTION, message = ValidateCondtionAndMessage.CHINESE_ENGLISH_NUMBER_UNDERLINE_BY_SERIESDESCRIPTION_MSG)
	private String dutyParagraph;
// 发票抬头
	@NotNull
	@Pattern(regexp = ValidateCondtionAndMessage.CHINESE_ENGLISH_NUMBER_UNDERLINE_BY_SERIESDESCRIPTION, message = ValidateCondtionAndMessage.CHINESE_ENGLISH_NUMBER_UNDERLINE_BY_SERIESDESCRIPTION_MSG)
	private String header;
// 邮箱
	@NotNull
	@Pattern(regexp = ValidateCondtionAndMessage.EMAIL_PATTERN, message = ValidateCondtionAndMessage.EMAIL_PATTERN_MSG)
	private String email;
// 0 论文润色费 1翻译费 2 文献检索服务费用 3 信息服务费用
	@NotNull
	@Min(value = ValidateCondtionAndMessage.MIN_STATUS, message = ValidateCondtionAndMessage.MIN_STATUS_MSG)
	@Max(value = ValidateCondtionAndMessage.MAX_STATUS, message = ValidateCondtionAndMessage.MAX_STATUS_MSG)
	private Byte content;

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getRechargeId() {
		return rechargeId;
	}

	public void setRechargeId(Integer rechargeId) {
		this.rechargeId = rechargeId;
	}

	public Byte getHeaderType() {
		return headerType;
	}

	public void setHeaderType(Byte headerType) {
		this.headerType = headerType;
	}

	public String getDutyParagraph() {
		return dutyParagraph;
	}

	public void setDutyParagraph(String dutyParagraph) {
		this.dutyParagraph = dutyParagraph == null ? null : dutyParagraph.trim();
	}

	public String getHeader() {
		return header;
	}

	public void setHeader(String header) {
		this.header = header == null ? null : header.trim();
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email == null ? null : email.trim();
	}

	public Byte getContent() {
		return content;
	}

	public void setContent(Byte content) {
		this.content = content;
	}

}
